<?php
/**
 * Created by JetBrains PhpStorm.
 * User: Administrator
 * Date: 13-11-8
 * Time: 上午9:50
 * 显示票付通会员列表
 */
use \pft\Member\MemberAccount as Mem;
if($_SESSION['dtype']!=9) {
    exit("不合法的身份访问！");
}
include '../common/autoload.php';
include COMMONPATH.'page.php';
$mem = new Mem($GLOBALS['le']);

$LD = array('供应商','分销商','资源方');
$LS = array('正常','<span style="color:#F63">禁用</span>',
    '<span style="#F00">删除</span>','<span style="color:#00F">未审核</span>');
$LVS = array('<span style="color:#00F">未审核</span>','正常','<span style="color:#F63">拒绝</span>');
$currentPage =$_REQUEST["currentPage"]?$_REQUEST["currentPage"]:1;
$pageSize    =$_REQUEST["pageSize"]?$_REQUEST["pageSize"]:10;
$offset     =($currentPage-1)*$pageSize;
$dtype = 2;
$status = -1;
if($_SERVER['REQUEST_METHOD']=='GET') {
    $st = intval($_GET['searchType']);
    if($_GET['dtype']>-1){
        $dtype = intval($_GET['dtype']);
    }
    if($_GET['status']>0){
        $status = intval($_GET['status']);
    }
}
try{
    $mem_list = $mem->ApplyList($dtype, $status, 0,false, $offset,$pageSize);
    $total_rows = $mem->ApplyList($dtype, $status,0,true);
//    print_r($mem_list);
} catch(Exception $e) {
    echo $e->getMessage();
}

//include '../common/header.html';
include 'tao.tpl';
//include '../common/footer.tpl';